﻿using IM.Easy.AuthorizationServices.Dtos;
using IM.Easy.Core.ServiceLifetime;
using IM.Easy.Core.Services;
using IM.Easy.Entity.System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.Api.AccountManage
{
    /// <summary>
    /// 角色服务
    /// </summary>
    public interface IPermissionService : ITransient
    {
        /// <summary>
        /// 绑定账户角色
        /// </summary>
        void BindAccountRole(AccountInfo account);

        /// <summary>
        /// 绑定账户权限
        /// </summary>
        void BindAccountPermission(AccountInfo account);

        /// <summary>
        /// 绑定账户功能模块
        /// </summary>
        void BindFeature(AccountInfo account);
        /// <summary>
        /// 获取用户所有角色
        /// </summary>
        /// <param name="uid">userid</param>
        List<SysRole> GetUserRoles(long uid);

        /// <summary>
        /// 获取菜单权限字符串
        /// </summary>
        /// <returns></returns>
        List<string> GetMenuPerms(long uid);
    }
}
